﻿using System.ComponentModel.DataAnnotations;
using static Modules.Notify.NotifyConstants;

namespace ManagementApi.Models.Person
{
    /// <summary>
    /// 系统通知编辑表单
    /// </summary>
    public class SysNotifyEditForm
    {
        /// <summary>
        /// 系统通知Id 
        ///</summary>
        [Display(Name = "系统通知Id")]
        public string? Id { get; set; }
        /// <summary>
        /// 发布内容 
        ///</summary>
        [Display(Name = "发布内容")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string? Content { get; set; }
        /// <summary>
        /// 限制查看人类型(1：所有人可见 2：建设单位可见 3：总承包可见 4：专业分包可见 5：劳务公司可见) 
        ///</summary>
        [Display(Name = "限制查看人类型")]
        [Required(ErrorMessage = "{0}不能为空")]
        public 可见对象类型 LimitReaderType { get; set; }
        /// <summary>
        /// 附件临时Ids
        ///</summary>
        [Display(Name = "附件Ids")]
        public List<string>? AttachmentIds { get; set; }

        /// <summary>
        /// 是否置顶该通知
        /// </summary>
        [Display(Name = "是否置顶")]
        public bool IsTop { get; set; }
    }
}
